import java.util.Scanner;

public class MethodAskPram {
    public static void main(String[] args) {
        int result = add();
        System.out.println("result = " + result);

    }
    //实现任意两个数的加法，不要参数
    public static int add()
    {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个数：");
        int a= sc.nextInt();
        System.out.println("请输入第二个数：");
        int b= sc.nextInt();
        return a+b;
    }
}
